package com.atcc.demo.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import com.atcc.demo.dao.ClassInfo;

@Mapper
public interface ClassMapper {
	
	@Select("select * from students where name = #{name}")
	@Results({
	    @Result(column="classname", property="classname"),
	    @Result(column="zhiwu",property="zhiwu")
	})
	List<ClassInfo> getClassInfoByName(String name);

}
